package homework12月15号.homework2;

/**
 * Created by dingw on 2019/12/11.
 */
//商品
public class Product {
    private String id;
    private String pname;
    private String cid;
    private Category category;

    public Product() {
    }

    public Product(String id, String pname,  String cid) {
        this.id = id;
        this.pname = pname;
        this.cid = cid;
    }

    public Product(String id, String pname,String cid, Category category) {
        this.id = id;
        this.pname = pname;
        this.cid = cid;
        this.category = category;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }
}
